﻿using System.Collections.Generic;
using FlowCanvas.Nodes;
using OWL.Rendering.HRP;

namespace Yoozoo.Gameplay.City.Blueprint.Node
{
    public struct BlueprintDailyStageSetting
    {
        public DailyStage Stage;
            
        public long StageTime;
    }
    
    public class SwitchInnerCityDailyStage : CallableActionNode<float, float, List<BlueprintDailyStageSetting>>
    {
        /// <summary>
        /// 设置内城昼夜参数
        /// </summary>
        /// <param name="timeSpeed">昼夜变化速度，为0则停止变化</param>
        /// <param name="startProgress">昼夜开始变化时的进度，小于0则自动根据服务器时间计算当前进度</param>
        /// <param name="stageTimeSetting">昼夜每个阶段的时间设置</param>
        public override void Invoke(float timeSpeed, float startProgress, List<BlueprintDailyStageSetting> stageTimeSetting)
        {
            InnerCityBluprintUtils.SwitchInnerCityDailyStage(timeSpeed, startProgress, stageTimeSetting);
        }
    }
}